﻿namespace Sidvall.IdentityManager.Data
{
	public sealed partial class SortItemCollection : System.Collections.ObjectModel.Collection<SortItem>
	{
		#region Public Members

		public void Add(long sortItemId, string name)
		{
			var item = new SortItem()
			{
				Name = name,
				SortItemId = sortItemId,
			};
			Add(item);
		}

		#endregion
		#region Factory Members

		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
		public static SortItemCollection GetDefaultItems()
		{
			SortItemCollection items;

			items = new SortItemCollection();
			items.Add(1, "The first");
			items.Add(2, "The last");

			return items;
		}

		#endregion
		#region Constructors

		public SortItemCollection()
		{
		}

		#endregion
	}
}
